header {
    background: #fff;
}

header .nav>li>a,
header .right-box a {
    color: #666;
}

header .right-box a:last-of-type {
    color: #fff;
}

header .right-box span {
    background: #666;
}

header .nav li.active>a {
    color: #00bdff;
    border-bottom: 3px solid #00bdff;
}

#search-btn {
    color: #666;
}

#search-content {
    background: rgba(102, 102, 102, 0.1);
    color: #666;
}

#search-content::placeholder {
    color: #000;
}


/* api列表内容模块 */

#classifyList {
    margin: 23px 0 44px;
}

#classifyList li {
    float: left;
    padding: 0 17px;
    border: 1px solid #ddd;
    font-size: 12px;
    line-height: 24px;
    border-radius: 12px;
    margin: 0 12px 10px 0;
    cursor: pointer;
}

#classifyList li:hover {
    opacity: .5;
}

#classifyList li.active {
    border: 1px solid #00bdff;
    color: #00bdff;
}


/* 搜索模块 */

.api-search {
    height: 30px;
    line-height: 30px;
}

.api-search form {
    width: 230px;
    height: 30px;
    border-radius: 15px;
    background-color: #f4f4f4;
    margin-left: 15px;
}

.api-search form input {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border: 0;
    text-indent: 1em;
    background: transparent;
    font-size: 12px;
}

.api-search form button {
    position: absolute;
    font-size: 18px;
    color: #bbb;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
}

.api-search form button:hover {
    opacity: .5;
}


/* api内容模块 */

.api-content li {
    position: relative;
    float: left;
    width: 226px;
    height: 218px;
    border: 1px solid #eee;
    text-align: center;
    padding-top: 50px;
    overflow: hidden;
    margin: 0 15px 15px 0;
}

.api-content li:nth-child(5n) {
    margin-right: 0;
}

.api-content li>span {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 58px;
    height: 22px;
    line-height: 22px;
    background: #e5f8ff;
    color: #00bdff;
    font-size: 12px;
}

.api-content li a.content {
    display: block;
}

.api-content li a.content,
.api-content li a.content p,
.api-content li a.api-btn {
    transition: all 0.5s ease;
}

.api-content li a.content p {
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 弹性伸缩盒子模型显示 */
    display: -webkit-box;
    /* 限制在一个块元素显示的文本的行数 */
    -webkit-line-clamp: 4;
    /* 设置或检索伸缩盒对象的子元素的排列方式 */
    -webkit-box-orient: vertical;
    color: #9f9f9f;
    width: 185px;
    margin: 0 auto;
    font-size: 12px;
    opacity: 0;
}

.api-content li a.content img {
    width: 79px;
    height: 56px;
    margin: 16px 0;
}

.api-content li a.content span.typeRed {
    color: #ff5441;
}

.api-content li a.content span.typeGreen {
    color: #29c287;
}

.api-content li a.api-btn {
    position: absolute;
    left: 0;
    right: 0;
    /* bottom: 17px; */
    bottom: -34px;
    margin: 0 auto;
    width: 192px;
    height: 32px;
    line-height: 32px;
    border-radius: 3px;
    background: #00bdff;
    color: #fff;
    opacity: 0;
}

.api-content li:hover a.content {
    transform: translateY(-20px);
}

.api-content li:hover a.content span {
    display: none;
}

.api-content li:hover a.content p {
    opacity: 1;
}

.api-content li:hover a.api-btn {
    bottom: 17px;
    opacity: 1;
}


/* 分页 */

.api-page .pages {
    display: inline-block;
}

.api-page .pages>a {
    line-height: 24px;
    color: #00bdff;
}

#pageList a.selected,
#pageList a {
    display: inline-block;
    height: 24px;
    line-height: 24px;
    /* background: #00bdff; */
    padding: 0 7px;
    border-radius: 50%;
    font-weight: 700;
    color: #666;
    margin: 0 7px;
    cursor: pointer;
    user-select: none;
}

#pageList a.selected {
    background: #00bdff;
    color: #fff;
}